<!--{include(pe_tpl('header.html'));}-->
<div class="right_page">
	<!--{include(pe_tpl('tongji_menu.html'));}-->	
	<div class="right_main">
		<div class="search">
			<form method="get">
				<input type="hidden" name="mod" value="{$_g_mod}" />
				<input type="hidden" name="act" value="{$_g_act}" />
				日期从：<input type="text" name="date1" value="{$_g_date1}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate inputtext" style="width:100px;height:20px;" />
				至 <input type="text" name="date2" value="{$_g_date2}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate inputtext" style="width:100px;height:20px;" />
				<input type="submit" value="搜索" class="input_btn" />
			</form>
		</div>
		<form method="post" id="form">
		<table border="0" cellspacing="0" cellpadding="0" class="list">
		<tr>
			<th class="bgtt" rowspan="2" style="border-left:0">统计日期<p class="mat10 cblue">（{pe_date($time1, 'Y-m-d')} 至 {pe_date($time2, 'Y-m-d')}）</p></th>
			<th class="bgtt" colspan="2">新增订单</th>
			<th class="bgtt" colspan="2">付款订单</th>
			<th class="bgtt" colspan="2" style="border-right:0">退款订单</th>
		</tr>
		<tr>
			<th class="bgtt">数量<br/>（{$all['num_new']}笔）</th>
			<th class="bgtt">金额<br/>（{$all['money_new']}元）</th>
			<th class="bgtt">数量<br/>（{$all['num_pay']}笔）</th>
			<th class="bgtt">金额<br/>（{$all['money_pay']}元）</th>
			<th class="bgtt">数量<br/>（{$all['num_refund']}笔）</th>
			<th class="bgtt" style="border-right:0">金额<br/>（{$all['money_refund']}元）</th>
		</tr>
		<!--{foreach((array)$order_list as $k=>$v):}-->
		<tr>
			<td style="border-left:0">{$k}</td>
			<td width="13%">{$v['num_new']?$v['num_new']:'-'}</td>
			<td width="13%"><span style="color:red">{$v['money_new']?$v['money_new']:'-'}</span></td>
			<td width="13%">{$v['num_pay']?$v['num_pay']:'-'}</td>
			<td width="13%"><span style="color:red">{$v['money_pay']?$v['money_pay']:'-'}</span></td>
			<td width="13%">{$v['num_refund']?$v['num_refund']:'-'}</td>
			<td width="13%" style="border-right:0"><span style="color:red">{$v['money_refund']?$v['money_refund']:'-'}</span></td>
		</tr>
		<!--{endforeach}-->
		</table>
		</form>
	</div>
</div>
<script type="text/javascript" src="{$pe['host']}include/plugin/my97/WdatePicker.js"></script>
<style type="text/css">
td {border-top:1px solid #f1f1f1 !important; border-right:1px solid #f1f1f1}
</style>
<!--{include(pe_tpl('footer.html'));}-->